package com.jk.smartelderlycare.controller;

import com.jk.smartelderlycare.dto.SysSupplier;
import com.jk.smartelderlycare.interfaces.SysSupplierServiceApi;
import com.jk.smartelderlycare.pojo.PagedResponse;
import com.jk.smartelderlycare.service.SysSupplierService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author hhk
 * @version 1.0
 * @ClassName SysSupplierController
 * @program: smart-elderly-care
 * @description: TODO
 * @date 2024/12/5 11:54
 */
@Slf4j
@RestController
public class SysSupplierController implements SysSupplierServiceApi {

    @Autowired
    private SysSupplierService sysSupplierService;
    @Override
    public PagedResponse<SysSupplier> findSysSupplierPaginationList(SysSupplier sysSupplier, Integer pageNum, Integer pageSize) {
        return sysSupplierService.findSysSupplierPaginationList(sysSupplier, pageNum, pageSize);
    }

    @Override
    public List<SysSupplier> findSysSupplierList() {
        return sysSupplierService.findSysSupplierList();
    }
}
